package com.mujin.keji.collectionsystem.module.outboundtask.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * 案件信息两个状态适配器：案件信息和催收记录
 *
 * @author weishixiong
 * @Time 2018-03-21
 */
public class CaseInfoAdapter extends FragmentPagerAdapter {
    private List<Fragment> mFragmentList;

    public CaseInfoAdapter(FragmentManager fm, List<Fragment> fragmentList) {
        super(fm);
        this.mFragmentList = fragmentList;
    }

    @Override
    public Fragment getItem(int arg0) {
        return mFragmentList.get(arg0);//显示第几个页面
    }

    @Override
    public int getCount() {
        return mFragmentList.size();//有几个页面

    }
}